﻿using HandyControl.Interactivity;
using MaterialDesignThemes.Wpf;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Interop;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using WcsZz.Extend;
using wms_wpf.InPut;

namespace wms_wpf.DialogView
{
    /// <summary>
    /// Dialog3.xaml 的交互逻辑
    /// </summary>
    public partial class Dialog3 : UserControl
    {
        public Dialog3()
        {
            InitializeComponent();
          
        }

        private void TextBox_PreviewTextInput(object sender, TextCompositionEventArgs e)
        {
            short val;
            if (!Int16.TryParse(e.Text, out val))
                e.Handled = true;
        }

        private void TextBox_PreviewKeyDown(object sender, KeyEventArgs e)
        {
            if (e.Key == Key.Space)
                e.Handled = true;
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            //EventAggregatorHelper.EventAggregator.SendMessage(BoxGridQuantity.Text + "-" + BoxGridQuantity.Text, "Dialog3");//"Setting" 给消息聚合器打上标记 


        }


    }
}
